<?php
if( ! sfContext::getInstance()->getUser()->isAuthenticated()){

$form = !empty($form) ? $form : new sfGuardFormSignin();
?>
<?php include_stylesheets_for_form($form) ?>
<?php include_javascripts_for_form($form) ?>


<form method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?> action="<?php echo url_for('sfGuardAuth/signin')?>">
<table cellpadding="0" cellspacing="0" class="form">
   <?php echo $form ?>
</table>
<ul>
    <li><?php echo link_to('New user','@cms_profile_register')?></li>
    <li><?php echo link_to('Forget your password','@cms_profile_req_password')?></li>
</ul>


<input type="submit" value="<?php echo __('Submit')?>" style="width:100px;padding:3px;"/>  

<div style="clear:both"></div>


</form>


<?php }else{?>

welcome : <?php echo sfContext::getInstance()->getUser()->getGuardUser()->getUsername();?>
<br>
<ul>
    <li><?php echo link_to(__('Edit profile'),'@cms_profile_edit_profile')?></li>
    <li><?php echo link_to(__('Change password'),'@cms_profile_change_password')?></li>
</ul>



<?php }?>